<html>
<head>
	<title>webnote sqlite database test</title>
</head>

<body>
	<pre> 
<?php
    if ($db = new SQLite3('webnote.db3'))
	{
		$q = $db->exec('INSERT INTO notes ( title , content ) VALUES ( "test utf8", "Đây là dòng chữ có utf8" )');
		if ($q === false)
		{
			die('Could not insert utf8');
		}
		else
			echo 'insert table successful';	
	}
	else
		die("Couldn't open database");
?>
	</pre>
</body>
</html>